package com.alex.wechat.mp.message.text.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.jeecgframework.core.common.entity.IdEntity;

/**
 * 文本模板。
 * 
 * @author Debenson
 * @since 0.1
 */
@Entity
@Table(name = "wx_texttemplate")
public class WxTextTemplate extends IdEntity {
  private static final long serialVersionUID = -8597785639323515009L;

  private String templateName;
  private String content;
  private String accountId;
  private String freemarkerSupport;
  /** 创建日期 */
  private java.util.Date createDate;
  /** 更新日期 */
  private java.util.Date updateDate;

  /**
   * 方法: 取得更新日期
   * 
   * @return 更新日期
   */
  @Column(name = "UPDATE_DATE", nullable = true, length = 20)
  public java.util.Date getUpdateDate() {
    return this.updateDate;
  }

  /**
   * 方法: 设置更新日期
   *
   * @param updateDate
   *          更新日期
   */
  public void setUpdateDate(java.util.Date updateDate) {
    this.updateDate = updateDate;
  }

  /**
   * 方法: 取得创建日期
   * 
   * @return 创建日期
   */
  @Column(name = "CREATE_DATE", nullable = true, length = 20)
  public java.util.Date getCreateDate() {
    return this.createDate;
  }

  /**
   * 方法: 设置创建日期
   *
   * @param createDate
   *          创建日期
   */
  public void setCreateDate(java.util.Date createDate) {
    this.createDate = createDate;
  }

  /**
   * 微信公众号标识。
   * 
   * @return
   */
  @Column(name = "accountid", length = 50, nullable = false)
  public String getAccountId() {
    return accountId;
  }

  public void setAccountId(String accountId) {
    this.accountId = accountId;
  }

  /**
   * 模板名称。
   * 
   * @return
   */
  @Column(name = "templatename", length = 50, nullable = false)
  public String getTemplateName() {
    return templateName;
  }

  public void setTemplateName(String templateName) {
    this.templateName = templateName;
  }

  /**
   * 文本内容。
   * 
   * @return
   */
  @Column(name = "content", length = 1024, nullable = false)
  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  /**
   * 是否支持FreeMarker.
   * 
   * @return
   */
  @Column(name = "freemarkerSupport", length = 10)
  public String getFreemarkerSupport() {
    return freemarkerSupport;
  }

  public void setFreemarkerSupport(String freemarkerSupport) {
    this.freemarkerSupport = freemarkerSupport;
  }

}
